import { PaginationResult } from "../../models";
import { BrandItem } from "./models";
import req from "/@/api/req";

export enum Api {
  addEquipmentBrandGroups = "api/system/equipmentBrands/addEquipmentBrandGroups",
  deleteEquipmentBrandGroupsByIds = "api/system/equipmentBrands/deleteEquipmentBrandGroupsByIds",
  getEquipmentBrandGroups = "api/system/equipmentBrands/getEquipmentBrandGroups",
  updateEquipmentBrandGroups = "api/system/equipmentBrands/updateEquipmentBrandGroups",

  addEquipmentBrands = "api/system/equipmentBrands/addEquipmentBrands",
  updateEquipmentBrands = "api/system/equipmentBrands/updateEquipmentBrands",
  getEquipmentBrandsByGroupId = "api/system/equipmentBrands/getEquipmentBrandsByGroupId",
  deleteEquipmentBrandsByIds = "api/system/equipmentBrands/deleteEquipmentBrandsByIds",
  brandsPage = "api/system/equipmentBrands/page",
}

export function brandsPage() {
  return req.commonPost<PaginationResult<BrandItem>>(Api.brandsPage, {
    size: 9999,
    current: 1,
    model: { searchText: "" },
  });
}
